package com.sntk.organauthomanager.infrastructure.commit;

import com.sntk.organauthomanager.application.dto.ResponseData;
import com.sntk.organauthomanager.infrastructure.commit.impl.MedicalOrganCommitHystrix;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name= "medical-center", fallback = MedicalOrganCommitHystrix.class)
@ConditionalOnProperty(prefix = "env",name = "pattern",havingValue = "cloud")
public interface MedicalOrganCloudCommit extends MedicalOrganCommit{

    @GetMapping(value = "/sntk/pension/interior/organ")
    ResponseData searchAllocationOrgans();

    @GetMapping(value = "/sntk/system/interior/organsetting/query")
    ResponseData searchAllOrgansSetting();
}
